package cn.billy.org.mapper;




import cn.billy.basic.mapper.BaseMapper;
import cn.billy.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @Description: 持久层
* @Author: Billy
* @Version: 1.0
* @Date:  2022/6/21 21:13
*/
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByUsername(String username);
    Employee loadByPhoneAndEmail(@Param("phone") String phone, @Param("email") String email);

    void removeEmployeeRole(Long id);

    void saveEmployeeRole(@Param("eId") Long id,@Param("roles") List<Long> roles);

    Employee loadByLogininfoId(Long logininfoId);

    List<Employee> getByEmployee(Long adminId);
}
